package cn.cau.service.impl;

import cn.cau.dao.CategoryDao;
import cn.cau.entity.Category;
import cn.cau.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;

    @Override
    public int insertCategory(Category category) {
        return categoryDao.insertCategory(category);
    }

    @Override
    public Category findCategoryById(int categoryId) {
        return categoryDao.findCategoryById(categoryId);
    }

}
